import axios from 'axios'

const apiClient = axios.create({
    baseURL: 'http://localhost:5000', // Flask 后端地址
    timeout: 5000,
    withCredentials: true, // 如果需要携带 Cookie 登录态
})

export default {
    install: (app) => {
        app.config.globalProperties.$axios = apiClient
    }
}